<!--{if !$_GET['inajax']}-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>$title</title>
  <base href="$baseurl" />
  <!-- 新 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="static/bootstrap3.3.0/css/bootstrap.min.css">
  <!-- 可选的Bootstrap主题文件（一般不用引入） -->
  <link rel="stylesheet" href="static/bootstrap3.3.0/css/bootstrap-theme.min.css">
  <script src="static/js/jquery-1.12.4.min.js"></script>
  <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
  <script src="static/bootstrap3.3.0/js/bootstrap.min.js"></script>
  <script src="static/jquery-jsonview-master/dist/jquery.jsonview.min.js"></script>
  <link href="static/jquery-jsonview-master/dist/jquery.jsonview.min.css" rel="stylesheet">
  <script type="text/javascript">
    jQuery(function ($) {
      $(".websockettype").each(function (index, domEle) {
        var wscode = $(this).find('.websockettypecode textarea').val();
        wscodeobj = JSON.parse(wscode);
        $(this).find('.websockettypecodedisplay .showcode').JSONView(wscodeobj);
      });
    });


    function displayws(_this) {
      $(_this).parents('.websockettype').find('.websockettypecodedisplay').toggle();
    }
  </script>
</head>

<body>
  <div class="container-fluid">
    <p>
      <!--{else}-->
      <style type="text/css">
        .varscontent {
          padding: 0px;
          margin: 0px;
        }
      </style>
      <!--{/if}-->
      <!--{loop $vars $key $value}-->
      <div class="list-group varscontent">
        <li class="list-group-item disabled">
          <b>$key</b>
        </li>
        <li class="list-group-item list-group-item-warning ">
          <b>$value[title]</b> ( 类型: $value[type] ) </li>
        <li class="list-group-item">
          <table class="table table-bordered table-striped table-info">
            <tbody>
              <!--{loop $value[data] $k $v}-->
              <tr>
                <td width="50%">$k</td>
                <td>$v</td>
              </tr>
              <!--{/loop}-->
            </tbody>
          </table>
        </li>
      </div>
      <!--{/loop}-->
      <!--{if !$_GET['inajax']}-->
    </p>
  </div>
</body>

</html>
<!--{/if}-->